import { request } from 'umi';

// 获取文章列表
export function getArticleList(page: number = 1){
  let params = {
    page,
    pageSize: 12,
    status: 'publish'
  }
  return request('/api/article', {
    params
  });
}

// 获取文章详情
export function getArticleDetail(id: string){
  return request(`/api/article/${id}`);
}
